<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name="viewport" content="width=device-width, height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_178829_bf6l2hog77h.css">
    <script src='js/rem.js'></script>
    <script src="js/jquery-3.2.1.min.js"></script>
    <script src='js/ptkc.js'></script>
    <title>排队领现</title>
    <style>
    </style>
</head>
<body>
    <header>
        <div class="header">
            <img src="img/header_01.jpg" />
        </div>
        <div class="bulletin">
            <div class="msg el-flex el-row el-between">
                <div class="img"><img src="img/demo1.png" /></div>
                <div class="title el-col">
                    <div style="color:#e5102e;font-size: 14px;">我已经领到现金，保证活动真实有效！</div>
                    <div style="color:#999;">（现金已到帐，大家快来吧）</div>
                </div>
            </div>
            <div class="item el-flex el-row el-between">
                <div class="list el-flex el-row">
                    <div class="ti"><img src="img/icon-rwjx.png" /></div>
                    <span class="daf">消费</span>
                    <span class="tag-price">￥10000</span>
                </div>
                <div class="list el-flex el-row">
                    <div class="ti"><img src="img/icon-jl01.png" /></div>
                    <span class="daf">领现</span>
                    <span class="lin-price">￥10000</span>
                </div>
            </div>
        </div>
    </header>
    <section>
        <div class="empty"></div>
        <!--公司信息-->
        <div class="company-msg">
            <div class="company el-flex el-row el-between">
                <div class="l-tj">
                    <div class="name">九紫春美容会所</div>
                    <div class="imgs el-flex el-row">
                        <img src="img/icon-wjx.png" />
                        <img src="img/icon-wjx.png" />
                        <img src="img/icon-wjx.png" />
                        <img src="img/icon-wjx.png" />
                        <img src="img/icon-wjx.png" />
                    </div>
                </div>
                <div class="r-tj">
                    <div class="moods">月均人气</div>
                    <div class="num">73</div>
                </div>
            </div>
            <div class="com-msg">
                <div class="item el-flex el-row">
                    <i class="iconfont icon-location" style="margin-right: .1rem;"></i>
                    景潭花园E区
                </div>
                <div class="item el-flex el-row">
                    <a href="tel: 13401489226" >
                        <i class="iconfont icon-dianhua"></i>
                        13401489226
                    </a>
                </div>
                <div class="text el-flex">
                    <i class="iconfont icon-wenbentext70"></i>
                    <p class="el-col">九紫春美容会所唯一景潭花园三期E23-9-10号！经历了9年的诚信服务，获得新老客户的支持与厚爱！我们的经营理念是：诚信经营！顾客至上！
                    服务好每一位客户！把我们的服务做到最好！我们的使命：创造健康与美丽，养生就是养生命！我们的价值观：注重人才！团队第一！与时俱进！</p>
                </div>
                <div class="act-imgs e-flex">
                    <img src="img/coun_01.jpg" />
                    <img src="img/coun_02.jpg" />
                </div>
            </div>
        </div>
        <div class="empty"></div>
        <!--商品列表-->
        <div class="comdty">
            <div class="title-self el-flex el-row">产品推荐</div>
            <ul class="tag-act el-flex el-flow-row-wrap">
                <li onclick="openPop('198','img/act_01.jpg')">
                    <div class="img el-flex el-row el-center">
                        <img src="img/act_01.jpg" />
                    </div>
                    <div class="price">￥198.00</div>
                    <div class="name overtext">沙诗亚生物活性肽奇迹面膜盒装</div>
                    <div class="btn el-flex el-row el-center">点击购买</div>
                </li>
                <li  onclick="openPop('89.8','img/act_02.jpg')">
                    <div class="img el-flex el-row el-center">
                        <img src="img/act_02.jpg" />
                    </div>
                    <div class="price">￥35.80-89.80</div>
                    <div class="name overtext">粉刺针套装细胞夹去黑神器美容</div>
                    <div class="btn el-flex el-row el-center">点击购买</div>
                </li>
                <li onclick="openPop('2399','img/act_03.jpg')">
                    <div class="img el-flex el-row el-center">
                        <img src="img/act_03.png" />
                    </div>
                    <div class="price">￥2399.00</div>
                    <div class="name overtext">FANBEAUTY UP家用脸部射频电子</div>
                    <div class="btn el-flex el-row el-center">点击购买</div>
                </li>
                <li onclick="openPop('248','img/act_04.jpg')">
                    <div class="img el-flex el-row el-center">
                        <img src="img/act_04.jpg" />
                    </div>
                    <div class="price">￥168.00-248.00</div>
                    <div class="name overtext">吸黑头神器电动吸小气泡去粉刺螨</div>
                    <div class="btn el-flex el-row el-center">点击购买</div>
                </li>
            </ul>
        </div>
        <div class="empty"></div>
        <!--排队领钱-->
        <div class="g-money">
            <div class="title-self el-flex el-row">排队领钱</div>
            <ul class="head-img el-flex el-flow-row-wrap">
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li><img src="img/demo1.png" /></li>
                <li class="el-flex el-row el-center"><i class="iconfont icon-caidan"></i></li>
            </ul>
            <div class="total">
                <div class="num">当前排队56人，已领现金12600元</div>
                <div class="price el-flex el-row el-center">
                   <img class="ti" src="img/icon-jl01.png" />
                    <div class="daf">领现</div>
                    <div class="lin-price">￥10000</div>元
                </div>
            </div>
        </div>
        <div class="empty"></div>
        <!--奖励名单-->
        <div class="ranking">
            <div class="title-self el-flex el-row">奖励排名(56)</div>
            <ul class="head-img">
                <li class="el-flex el-row el-between">
                    <div class="wrap el-flex el-row">
                        <div class="ti"><img src="img/demo1.png" /></div>
                        <div class="name">158****7555</div>
                    </div>
                    <div class="price">￥<span class="light">198</span>元</div>
                </li>
            </ul>

        </div>
        <div class="empty"></div>
        <!--热门评论-->
        <div class="hot-eval">
            <div class="title-self el-flex el-row">热门评论(56)</div>
            <ul class="head-img">
                <li class="el-flex el-row el-between">
                    <div class="ti"><img src="img/demo1.png" /></div>
                    <div class=" el-col">
                        <div class="line el-flex el-row el-between">
                            <div class="name">158****7555</div>
                            <div class="time">2015-12-12 12:00:00</div>
                        </div>
                        <div class="imgs el-flex el-row">
                            <img src="img/icon-wjx.png" />
                            <img src="img/icon-wjx.png" />
                            <img src="img/icon-wjx.png" />
                            <img src="img/icon-wjx.png" />
                            <img src="img/icon-wjx.png" />
                        </div>
                        <div class="word overtext">使用感觉很好，非常满意！</div>
                    </div>
                </li>
            </ul>
        </div>

    </section>
    <footer>
        <div class="empty"></div>
        <img style="width: 10rem " src="img/rlus.jpg"  />
        <ul class="ruls">
            <li>1、商户每笔首款根据一定比例进入奖励池。</li>
            <li>2、奖励池的金额达到当前排队第一位顾客待奖励金额时第一位顾客领奖并退出排队。</li>
            <li>3、奖励池根据排队顺序依次自动发放奖励。</li>
            <li>4、获得结束前,先排先得，奖励池领完为止。</li>
        </ul>
    </footer>
    <div class="pop-up none" id="pop-up">
        <div class="wrap">
            <i class="iconfont icon-guanbi" onclick="$('#pop-up').fadeOut()"></i>
            <div class="title">
                立即购买参与排队领现金
            </div>
            <img class="img" src="img/demo1.png" />
            <div class="pay-num el-flex el-row el-between">
                购买数量
                <div class="el-flex add">
                    <div class="btn el-flex el-center el-row" onclick="lessNum()">
                        <i class="iconfont icon-iconless1"></i>
                    </div>
                    <input id ="nums" type="number" disabled value="1" >
                    <div class="btn el-flex el-center el-row"  onclick="addNum()">
                        <i class="iconfont icon-zengjia"></i>
                    </div>
                </div>
            </div>
            <div class="total-pay">共计 <i>1</i> 件商品，合计金额：<em id="total">￥140.00元</em></div>
            <div id="toPay" class="el-flex el-center el-row">立即支付</div>
            <p style="text-align: center">(支付完成后自动参与排队领取奖励哦)</p>
        </div>
    </div>
    <style>

    </style>
</body>
<script>
    var curPrice = '';

   var openPop = function(price,img){     //打开产品详情
       //初始化部分
       $('#nums').val('1');
       $('.total-pay i').val('1');

       $('#pop-up').find('.img').attr('src',img);
       curPrice = price;
        $('#total').text('￥'+price+'元');
        $('#pop-up').show();
   },
    addNum = function(){                //添加购买数量
        var num = $('#nums').val();
         var nums = parseInt(num) +1;
        $('#nums').val(nums);
        //精准计算
         var newPrice = new ptkc.sum(nums,curPrice).accMul() ;
        $('#total').text('￥'+ newPrice+'元');
        $('.total-pay i').text(nums);
   },
   lessNum = function(){                //减少购买数量
       var num = $('#nums').val();
       if(num <= '1') return false;
       var nums = parseInt(num) -1;
       $('#nums').val(nums);
       //精准计算
       var newPrice = new ptkc.sum(nums,curPrice).accMul();
       $('#total').text('￥'+ newPrice+'元');
       $('.total-pay i').text(nums);
   }



</script>
</html>